<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<link rel="stylesheet" type="text/css" href="<%=path%>/css/base.css" />
		<script type='text/javascript' src='<%=path%>/dwr/engine.js'></script>
		<script type='text/javascript' src='<%=path%>/dwr/util.js'></script>
		<script type="text/javascript" src="<%=path%>/js/popup.js"></script>
        <script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
		<script language="javascript">
		    function check()
		    {
		        var name = document.getElementById('name').value;
		        if(name==null || name==''){
		           alert('请输入姓名');
		           return;
		        }
		        var tel = document.getElementById('tel').value;
		        if(tel==null || tel==''){
		           alert('请输入电话');
		           return;
		        }
		        var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; 
		        if(!myreg.test(tel)) 
				{ 
				    alert('请输入有效的手机号码！'); 
				    return; 
				} 
		         var uname = document.getElementById('uname').value;
		        if(uname==null || uname==''){
		           alert('请输入用户名');
		           return;
		        }
		        var upwd = document.getElementById('upwd').value;
		        if(upwd==null || upwd==''){
		           alert('请输入密码');
		           return;
		        }
		        
	 
		        document.formAdd.submit();
		    }
		    
		    
		   
        </script>
	</head>

	<body leftmargin="2" topmargin="9"
		background='<%=path%>/images/allbg.gif'>
		<form action="<%=path%>/teacherAdd.action" name="formAdd"
			method="post">
			<table width="98%" align="center" border="0" cellpadding="4"
				cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom: 8px">
				<tr bgcolor="#EEF4EA">
					<td colspan="3" background="<%=path%>/images/wbg.gif"
						class='title'>
						<span>添加</span>
					</td>
				</tr>



				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						姓名：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="name" name="name" maxlength="50" />

					</td>
				</tr>


				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						性别：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
                        <select  id="sex" name="sex">
                           <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
					</td>
				</tr>


				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						学历：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						 
                        <select id="xueli" name="xueli" >
                           <option value="本科">本科</option>
                            <option value="硕士">硕士</option>
                              <option value="博士">博士</option>
                        </select>
					</td>
				</tr>
				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						院系：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						 <select name="orginazation" id="orginazation"  >
						      <option value="0" >请选择</option>
							  <c:forEach items="${jigouList}" var="jinfo">
							        <option value="${jinfo.name}">${jinfo.name}</option>
							  </c:forEach>
						</select>
					</td>
				</tr>

				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						电话：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="tel" name="tel" maxlength="50" />

					</td>
				</tr>
<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						职称：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="level" name="level" maxlength="50" />

					</td>
				</tr>
				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						政治面貌：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="face" name="face" maxlength="50" />

					</td>
				</tr>
				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						身份证号：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="idnumber" name="idnumber" maxlength="50" />

					</td>
				</tr>
				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						籍贯：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="provice" name="provice" maxlength="50" />

					</td>
				</tr>
				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						用户名：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="text" id="uname" name="uname" maxlength="50" />

					</td>
				</tr>


				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						密码：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="password" id="upwd" name="upwd" value="123456" maxlength="50" />

					</td>
				</tr>


			  

				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						&nbsp;
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						<input type="button" value="提交" onclick="check()" />
						&nbsp;
						<input type="reset" value="重置" />
						&nbsp;
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
 